﻿using System.ServiceModel;
using Perseus.WCF.Contract.Data;

namespace Perseus.WCF.Contract
{
    [ServiceContract(Name = "PerseusDemoService", Namespace = "http://cnblogs.com/davidgu")]
    public interface IDemoService
    {
        /*
            Hello
         */
        [OperationContract]
        string SayHello(string name);

        /*
            Calculator
         */
        [OperationContract]
        double Add(double x, double y);

        [OperationContract]
        double Subtract(double x, double y);

        [OperationContract]
        double Multiply(double x, double y);

        [OperationContract]
        double Divide(double x, double y);

        /*
            Object Parameter
         */
        [OperationContract]
        string GetEmployee(EmployeeData employee);
    }
}
